<template>
  <div>
    <div class="main_title">
      <div>调查记录</div>
      <div class="main_tile_right">
        <div>已选中
          <span style="color: #047466;">{{ selectkeys.length }}</span>
        条数据</div>
        <a-button @click="exportExcel" :disabled="selectkeys.length === 0" type="primary">
          <VerticalAlignBottomOutlined />
          导出
        </a-button>
      </div>
    </div>
  </div>
</template>
<script setup>
import { VerticalAlignBottomOutlined } from '@ant-design/icons-vue'
defineProps(['selectkeys'])
const emit = defineEmits(['exportExcel'])
const exportExcel = () => {
  emit('exportExcel')
}
</script>
<style lang="scss" scoped>
.main_title {
  display: flex;
  justify-content: space-between;
  font-size: 16px;

  .main_tile_right {
    display: flex;
    align-items: center;
    
    .ant-btn-primary {
      margin-left: 20px;
    }
  }
}
</style>